package com.kc.gb.device.common.dto;

import com.kc.gb.base.dto.DeviceType;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class RefreshUIEvent {
    private String publisher;
    private boolean publishByDevice;
    private DeviceType publishDeviceType;

    public RefreshUIEvent(DeviceType deviceType) {
        this.publishByDevice = true;
        this.publishDeviceType = deviceType;
        this.publisher = deviceType.name();
    }
}
